<?php
class RequestHandlerComponent{
	var $controller;
	function isAjax(){
		//return true;
		return env('HTTP_X_REQUESTED_WITH') === "XMLHttpRequest";
	}
	function initialize($controller){
		$controller->RequestHandler=$this;
		$this->controller=$controller;
	}
	function startup(){

	}
	function isPost() {
		return (strtolower(env('REQUEST_METHOD')) == 'post');
	}
}